﻿@model IList<CmsModule>
@{
    ViewBag.Title = "Modules";
    Layout = "/admin/templates/TelerikAdministration.cshtml";
}

<h1 class="g-clear">
    <i class="b-icon b-icon_h b-icon_h_config"></i>
    <span class="b-overflow">
        Modues management
        <span class="b-intro-text">The following table shows all modules.</span>
    </span>
</h1>

<div id="TabStrip" class="t-widget t-tabstrip t-header">
    @Html.Partial("ConfigurationMenu", 3)
    <div style="display: block;" id="TabStrip-1" class="t-content t-state-active">
        <div class="t-content-inner g-clear">
            <p class="clear-left">
                <a class="b-button" href="@Url.Action("add")">Add new module</a>
            </p>
            @(Html.Telerik().Grid(Model).Name("modules")
                            .Columns(columns =>
                                {
                                    columns.Bound(p => p.ModuleName).Title("Module Name").Template(@<text><a href="@Url.Action("edit", "cmsmodule", new {id = item.Id})">@item.ModuleName</a></text>);
                                    columns.Bound(p => p.DateCreated).Title("Date Created");
                                }))
        </div>
    </div>
</div>
